package com.neusoft.entity;

import com.neusoft.annotation.ID;
import com.neusoft.annotation.Table;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

@Table("stu.pay")
@Data
@ToString
@Accessors(chain = true)  //链式写法
@NoArgsConstructor
@AllArgsConstructor
public class Pay {
    @ID
    private Integer id;
    private String name;
    private Integer amount;
    private Integer total;
    private String state;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAmount() {
        return amount;
    }

    public void setAmount(Integer amount) {
        this.amount = amount;
    }

    public Integer getTotal() {
        return total;
    }

    public void setTotal(Integer total) {
        this.total = total;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    @Override
    public String toString() {
        return "Pay{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", amount=" + amount +
                ", total=" + total +
                ", state='" + state + '\'' +
                '}';
    }
}
